package com.direct.domian;
import java.util.HashSet;
import java.util.Set;

/**
 * 乡镇表
 * 
 * @author Administrator
 * 
 */

public class Town {

	// 所属城市
	private City city;
	// 所拥有的配送点
	private Set<Distribution> distributions = new HashSet(0);
	private String id;
	private String name;
	private Integer sorted;

	public Town() {
	}

	public Town(String id) {
		this.id = id;
	}

	public Town(String id, City city, String name, Integer sorted,
			Set<Distribution> distributions) {
		this.id = id;
		this.city = city;
		this.name = name;
		this.sorted = sorted;
		this.distributions = distributions;
	}

	public City getCity() {
		return city;
	}

	public Set<Distribution> getDistributions() {
		return distributions;
	}

	public String getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Integer getSorted() {
		return sorted;
	}

	public void setCity(City city) {
		this.city = city;
	}

	public void setDistributions(Set<Distribution> distributions) {
		this.distributions = distributions;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setSorted(Integer sorted) {
		this.sorted = sorted;
	}

}